package com.lsh.dao;

import com.lsh.pojo.Catalog;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CatalogDao {
    @Select("select count(0) from t_catalog where courseId = #{id}")
    long selectByCouresId(Integer id);
    @Select("select * from t_catalog where courseId = #{id}")
    List<Catalog> findByCourseId(Integer id);
}
